<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跨域测试</title>
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
</head>
<body>
    <h1>跨域测试</h1>
</body>
</html>

<script type="text/javascript">

    var WEB_URL = "http://10.1.56.89";

    $.post(WEB_URL + "/api/select/findAllTown",{},function(res){
        alert(res.code === 1 ? "请求成功" : "请求失败");
    });

</script>